import Taro from '@tarojs/taro'
const toastFun = {
    success:(title='操作成功', duration=2000)=>{
        Taro.showToast({
            title,
            icon: 'success',
            duration
        })
    },
    fail:(title='失败', duration=2000)=>{
        Taro.showToast({
            title,
            icon: 'fail',
            duration
        })
    },
    loading:(title='加载中', duration=2000)=>{
        Taro.showToast({
            title,
            icon: 'fail',
            duration
        })
    }
}
export default toastFun